package org.caijin.springrabbitMQ.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "sharding_exchange")
public class ShardingConsumer2 {
    @RabbitHandler
    public void process(String message) {
        System.out.println("[Sharding2] received message: " + message);
    }
}
